package utilidades.tags;

import java.io.IOException;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

import utilidades.utils.*;

public class HtmlTag extends BodyTagSupport {
	public int doEndTag() throws JspTagException {
		BodyContent bodyContent = getBodyContent();
		// Do nothing if there was no body content
		if (bodyContent != null) {
			StringBuffer output = new StringBuffer(bodyContent.getString());
                        String output2 = Normalize.normalizeText(output.toString());
			try {
				bodyContent.getEnclosingWriter().write(output2);
			}
			catch (IOException ex) {
				throw new JspTagException("Fatal IO error");
			}
		}

		// Process the rest of the page
		return EVAL_PAGE;
	}
    
}
